Fix bug when merging non-image an1 with gpx to make image an1
authorparkrrrr <parkrrrr>
Fri, 26 May 2006 23:04:36 +0000 (23:04 +0000)
committerparkrrrr <parkrrrr>
Fri, 26 May 2006 23:04:36 +0000 (23:04 +0000)
an1.c

diff --git a/an1.c b/an1.c
index 8d603469b9d05c2b4c2f285ec94f7ef602c4460b..00e4ea73509655e0474b8f3614ddecc7a0b00448 100644 (file)
--- a/an1.c
+++ b/an1.c
@@ -813,7 +813,7 @@ Write_One_AN1_Waypoint( const waypoint *wpt )
        rec->lon = EncodeOrd( -wpt->longitude );
        rec->serial = serial++;
        
-       if ( wpt_type_num == 0x12 ) {  /* image */
+       if ( rec->type == 0x12 ) {  /* image */
                if ( strstr( wpt->icon_descr, ":\\" )) {
                        rec->image_name = xstrdup( wpt->icon_descr );
                        rec->height = -244;